package BDLayer;

import java.util.List;

import modelLayer.Product;

public interface IFDBProduct {
	
	//return list of type Product
	public List<Product> getAllProduct(boolean retriveAssociation);
	
	//return object of type Product by productID search
	public Product findProductByID(String productID, boolean retriveAssociation);
	
	//return object of type Product by colorCode search
	public Product findProductByColorCode(String colorCode, boolean retriveAssociation);
	
	//return object of type Product by storeRef search
	public Product findProductByStoreRef(String storeRef, boolean retriveAssociation);
	
	//return 1 if insert is ok, and -1 if not
	public int insertProduct(Product pObj, boolean retriveAssociation) throws Exception;
	
	//return 1 if insert is ok, and -1 if not
	public int updateProduct(Product pObj);
	
	//return 1 if insert is ok, and -1 if not
	public int deleteProduct(Product pObj);

}
